<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/float/fk_reimfloat.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/float/fk_reimfloat.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'fk_reimfloat_id',
                footer: "Foots",
                cnName: '业务流程审核',
                name: 'float/fk_reimfloat',
                url: "/fk_reimfloat/",
                sortName: "fk_reimfloat_id"
            });
            const editFormFields = ref({"stepid":"","stepname":"","username":"","bdatetime":"","reyijian":"","remark":"","reimid":"","reimtable":"","bek":"","nextstepid":"","pxm":"","tjsql":"","roleid":""});
            const editFormOptions = ref([[{"title":"业务步骤","field":"stepid","type":"number"},
                               {"title":"步骤名称","field":"stepname"},
                               {"title":"操作人员","field":"username"},
                               {"title":"签署时间","field":"bdatetime"},
                               {"title":"意见","field":"reyijian"},
                               {"title":"意见详情","field":"remark"},
                               {"title":"业务编码","field":"reimid"},
                               {"title":"业务表(区分其他流程)","field":"reimtable"},
                               {"title":"流程标识（0开始，9999结束）","field":"bek","type":"number"},
                               {"title":"下一步骤","field":"nextstepid","type":"number"},
                               {"title":"排序码","field":"pxm","type":"number"},
                               {"title":"条件SQL","field":"tjsql"},
                               {"dataKey":"roles","data":[],"title":"当前处理角色","field":"roleid","type":"select"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'fk_reimfloat_id',title:'fk_reimfloat_id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'stepid',title:'业务步骤',type:'int',width:110,hidden:true,align:'left'},
                       {field:'stepname',title:'步骤名称',type:'string',width:110,align:'left',sort:true},
                       {field:'username',title:'操作人员',type:'string',width:110,hidden:true,align:'left'},
                       {field:'bdatetime',title:'签署时间',type:'datetime',width:110,align:'left',sort:true},
                       {field:'reyijian',title:'意见',type:'string',width:110,align:'left'},
                       {field:'remark',title:'意见详情',type:'string',width:220,align:'left'},
                       {field:'reimid',title:'业务编码',type:'guid',width:110,align:'left'},
                       {field:'reimtable',title:'业务表(区分其他流程)',type:'string',width:110,align:'left'},
                       {field:'bek',title:'流程标识（0开始，9999结束）',type:'int',width:110,align:'left'},
                       {field:'nextstepid',title:'下一步骤',type:'int',width:110,align:'left'},
                       {field:'pxm',title:'排序码',type:'int',width:110,align:'left'},
                       {field:'tjsql',title:'条件SQL',type:'string',width:220,align:'left'},
                       {field:'roleid',title:'当前处理角色',type:'int',bind:{ key:'roles',data:[]},width:110,align:'left'},
                       {field:'userrealname',title:'操作人名称',type:'string',width:120,align:'left'},
                       {field:'path_router',title:'路由',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
